package net.tarine.oracolo.client;

import net.tarine.oracolo.shared.AppConstants;

import com.google.gwt.user.client.Cookies;

public class AuthSingleton {

	private static AuthSingleton instance = null;
	
	private AuthSingleton() {}
	
	public static AuthSingleton get() {
		if (instance == null) instance = new AuthSingleton();
		return instance;
	}
	
	public String getTokenFromCookie() {
		String token = Cookies.getCookie(AppConstants.COOKIE_TOKEN);
		return token;
	}
	
}
